import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:pornhub_app/assets/styles.dart';
import 'package:pornhub_app/components/easy_button.dart';
import 'package:pornhub_app/utils/color.dart';

class AiMakeButton extends StatelessWidget {
  final VoidCallback? onTap;
  final String text;
  final double? width;

  const AiMakeButton(this.text, {super.key, this.onTap, this.width});

  Widget _buildBtn(
      {required BorderRadius borderRadius, required double height}) {
    return EasyButton(
      text,
      height: height,
      width: width,
      textStyle: TextStyle(
        color: COLOR.black,
        fontWeight: FontWeight.bold,
        fontSize: 15.w,
      ),
      backgroundColor: COLOR.color_FF9205,
      borderRadius: borderRadius,
      onTap: onTap,
    );
  }

  @override
  Widget build(BuildContext context) => _buildBtn(
        borderRadius: Styles.borderRadius.all(25.w),
        height: 42.w,
      );
}
